package top.huhuiyu.spirngboot2.total.service;

import top.huhuiyu.spirngboot2.total.base.BaseDataResult;
import top.huhuiyu.spirngboot2.total.base.BasePageResult;
import top.huhuiyu.spirngboot2.total.base.BaseResult;
import top.huhuiyu.spirngboot2.total.base.PageBean;
import top.huhuiyu.spirngboot2.total.entity.TbNews;

import java.util.List;

public interface NewsService {
    BasePageResult<List<TbNews>> query(PageBean page, TbNews tbNews);

    BaseResult add(TbNews tbNews);

    BaseDataResult<TbNews> queryByKey(Integer nid);

    BaseResult update(TbNews tbNews);

    BaseResult delete(Integer nid);
}
